package com.fengzheng.basic.mapper.sys;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fengzheng.basic.model.vo.SysMenuVo;
import com.fengzheng.basic.model.po.SysMenuPo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author liht
* @description 针对表【sys_menu】的数据库操作Mapper
* @createDate 2022-03-28 17:18:39
* @Entity com.fengzheng.basic.model.po.SysMenuPo
*/
@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenuPo> {

    List<SysMenuVo> findMenuByRoleIds(@Param("roles") List<Long> roleIds);

    List<SysMenuVo> selectByParentId(@Param("parentId") Long id);

    List<SysMenuVo> getTreeByParentId(@Param("parentId") Long id);
}
